<?php
declare (strict_types = 1);

namespace app\validate;


class PrizeValidate extends BaseValidate
{
    /**
     * 定义验证规则
     * 格式：'字段名' =>  ['规则1','规则2'...]
     *
     * @var array
     */
    protected $rule = [
        'prize_name'  =>  'require|max:50',
        'prize' =>  'require|min:1|max:50',
        'count' =>   'require|number|between:1,100'
    ];

    /**
     * 定义错误信息
     * 格式：'字段名.规则名' =>  '错误信息'
     *
     * @var array
     */
    protected $message = [

    ];
}
